﻿@model DenderaMvcWeb.Models.anagrafica

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>anagrafica</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.id_anag)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.id_anag)
            @Html.ValidationMessageFor(model => model.id_anag)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.piva)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.piva)
            @Html.ValidationMessageFor(model => model.piva)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ragione_soc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ragione_soc)
            @Html.ValidationMessageFor(model => model.ragione_soc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.via)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.via)
            @Html.ValidationMessageFor(model => model.via)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.citta)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.citta)
            @Html.ValidationMessageFor(model => model.citta)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.provincia)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.provincia)
            @Html.ValidationMessageFor(model => model.provincia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.stato)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.stato)
            @Html.ValidationMessageFor(model => model.stato)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.tel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.tel)
            @Html.ValidationMessageFor(model => model.tel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.mail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.mail)
            @Html.ValidationMessageFor(model => model.mail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fornitore)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fornitore)
            @Html.ValidationMessageFor(model => model.fornitore)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.cliente)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cliente)
            @Html.ValidationMessageFor(model => model.cliente)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.disabilitato)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.disabilitato)
            @Html.ValidationMessageFor(model => model.disabilitato)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.cod_anag_esterna)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cod_anag_esterna)
            @Html.ValidationMessageFor(model => model.cod_anag_esterna)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.default_owner)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.default_owner)
            @Html.ValidationMessageFor(model => model.default_owner)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
